import login from './views/login.vue'
import home from './views/home.vue'
import NotFound from './views/404.vue'
import appointment_list from './views/appointment/list.vue'
import appointment_add from './views/appointment/add.vue'
import appointment_edit from './views/appointment/edit.vue'
import todaysales_list from './views/todaysales/list.vue'
import collectmoney_checkout from './views/collectmoney/checkout.vue'
import report_index from './views/report/index.vue'
import report_shopReport from './views/report/shopReport.vue'
import report_staffReport from './views/report/staffReport.vue'
import setting_index from './views/setting/index.vue'
import setting_language from './views/setting/setLanguage.vue'
import setting_staffMgr from './views/setting/setStaffMgr.vue'
import setting_staffMgrAdd from './views/setting/setStaffMgrAdd.vue'
import setting_projectmenu from './views/setting/setProjectMenu.vue'
import gift_index from './views/giftcard/index.vue'
import gift_report from './views/giftcard/report.vue'
import gift_salecard from './views/giftcard/salecard.vue'
import gift_detail from './views/giftcard/detail.vue'


let routes = [{
        path: '/login',
        component: login,
        name: '',
        hidden: true
    },{
        path: '/home',
        component: home,
        name: '',
        hidden: true
    },
    {
        path: '/404',
        component: NotFound,
        name: '',
        hidden: true
    },
    {
        path: '/appointment_list',
        component: appointment_list,
        name: '预约列表'
    },
    {
        path: '/appointment_add',
        component: appointment_add,
        name: '添加预约'
    },
    {
        path: '/appointment_edit/:appointmentId',
        component: appointment_edit,
        name: 'appointment_edit'
    },
    {
        path: '/todaysales_list',
        component: todaysales_list,
        name: '今日销售列表'
    },
    {
        path: '/collectmoney_checkout',
        component: collectmoney_checkout,
        name: '结账收银'
    },
    {
        path: '/report/index',
        component: report_index,
        name: '报表主页'
    },
    {
        path: '/report/shop',
        component: report_shopReport,
        name: '店铺报表'
    },
    {
        path: '/report/staff',
        component: report_staffReport,
        name: '员工报表'
    },  
    {
        path: '/giftcard/index',
        component: gift_index,
        name: '礼卡主页'
    },
    {
        path: '/giftcard/report',
        component: gift_report,
        name: '礼卡报表'
    },
    {
        path: '/giftcard/salecard',
        component: gift_salecard,
        name: '销售礼卡'
    },
    {
        path: '/giftcard/detail',
        component: gift_detail,
        name: 'giftcard_detail'
    },
    {
        path: '/setting/index',
        component: setting_index,
        name: '设置主页'
    },
    {
        path: '/setting/language',
        component: setting_language,
        name: '设置语言'
    },
    {
        path: '/setting/staffmgr',
        component: setting_staffMgr,
        name: '员工管理'
    },
    {
        path: '/setting/staffmgr/add',
        component: setting_staffMgrAdd,
        name: '添加新员工'
    },
    {
        path: '/setting/projectmenu',
        component: setting_projectmenu,
        name: '菜单设置'
    },
    {
        path: '*',
        hidden: true,
        redirect: { path: '/404' }
    }
];

export default routes;